.layout {
  width: 100%;
  height: 100vh;
  background-color: #E5E5E5;
  position: absolute;

  .heart {
    width: 100%;
    height: 66px;
    position: fixed;

    .top {
      width: 100%;
      background-color: #ffffff;

      .content {
        width: 90%;
        height: 35px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;

        view {
          border: 1px solid #E5E5E5;
          flex: 0 0 33.33%;
          text-align: center;
          border-radius: 5px;
          height: 30px;
          line-height: 30px;
        }

        .active {
          background-color: #d81e06;
          color: #ffffff;
        }
      }
    }
  }

  .but {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto;
    margin-top: 66px;
    /* 头部高度 */
    height: calc(100vh - 116px);
    /* 确保高度正确，减去头部和底部的高度 */
    overflow-y: auto;
    /* 允许垂直滚动 */

    .list {
      width: 100%;
      height: 120px;
      border-radius: 10px;
      margin-top: 10px;
      background-color: #ffffff;
      margin-bottom: 10px;

      .s-cont {
        width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        height: 120px;
        align-items: center;

        .left {
          display: flex;
          height: 100%;
          align-items: center;

          image {
            width: 86px;
            height: 86px;
            background-color: red;
            border-radius: 50%;
          }

          .decr {
            margin-left: 20px;
            .sales{
              display: flex;
              margin-top: 5px;
              font-size: 12px;
              color: #686565;
            }

            .price {
              margin-top: 5px;
              display: flex;
            }
          }
        }

        .right {
          display: flex;
          margin-top: 60px;
          width: 70px;
          justify-content: space-between;
          .lef {
            display: flex;
            .minus {
              width: 20px;
              height: 20px;
              border-radius: 50%;
              border: 1px solid #8b8a8a;
              display: flex;
              justify-content: center;
            }
            .number{
              width: 25px;
              text-align: center;
            }
          }
          .add {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid #8b8a8a;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }
    }
  }

  .car {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: #ffffff;

    .c-cont {
      width: 90%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      height: 100%;
      align-items: center;

      .left {
        display: flex;
        height: 100%;
        align-items: center;

        .addcar {
          width: 40px;
          height: 40px;
          position: relative;

          image {
            width: 40px;
            height: 40px;
          }

          .addnum {
            position: absolute;
            right: -8px;
            top: -2px;
            width: 16px;
            height: 16px;
            background-color: #d81e06;
            color: #ffffff;
            border-radius: 50%;
            font-size: 10px;
            text-align: center;
            line-height: 16px;
            font-weight: bold;

          }
        }

        .text {
          margin-left: 20px;

          .top {
            display: flex;
            font-size: 18px;

            .num {
              color: #d81e06;
              font-size: 20px;
            }
          }

          .bot {
            display: flex;
            font-size: 12px;

            .lef {
              display: flex;
            }

            .ri {
              display: flex;
              margin-left: 15px;
              color: #BDBDBD;
            }
          }
        }
      }

      .right {
        height: 40px;
        width: 90px;
        background-color: #d81e06;
        color: #ffffff;
        font-weight: bold;
        border-radius: 10px;
        line-height: 40px;
        text-align: center;
      }
    }
  }

  .bigbox {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(229, 229, 229, .8);

    .box {
      width: 340px;
      height: 438px;
      top: 70px;
      position: absolute;
      left: 50%;
      transform: translate(-50%);

      // left: 50%;
      // margin-left: -170px;
      // top: 70px;
      .conten {
        width: 100%;
        height: 400px;
        border-radius: 20px;
        background-color: rgb(224, 222, 219);
        position: relative;

        image {
          width: 100%;
          height: 180px;
          background-color: cadetblue;
          border-top-left-radius: 20px;
          border-top-right-radius: 20px;
        }

        .ceter {
          width: 90%;
          margin: 0 auto;

          .title {
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            margin-top: 10px;
          }

          .intro {
            margin-top: 10px;
            font-size: 14px;
            text-align: justify;
          }

          .cen {
            display: flex;
            width: 90%;
            justify-content: space-between;
            position: absolute;
            bottom: 60px;

            .pr {
              display: flex;
            }

            .right {
              display: flex;
              width: 80px;
              justify-content: space-between;
              height: 26px;
              align-items: center;

              .lef {
                display: flex;
                // width: 45px;
                height: 26px;
                align-items: center;
                // justify-content: space-between;

                .minu {
                  width: 20px;
                  height: 20px;
                  border-radius: 50%;
                  border: 3px solid #666464;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                }
                .number{
                  width: 27px;
                  text-align: center;
                }
              }


              .add {
                width: 20px;
                height: 20px;
                border-radius: 50%;
                border: 3px solid #666464;
                display: flex;
                align-items: center;
                justify-content: center;
              }
            }
          }

          button {
            width: 90%;
            height: 42px;
            color: #ffffff;
            background-color: #d81e06;
            border-radius: 15px;
            position: absolute;
            bottom: 10px;
          }
        }
      }

      .fork {
        position: absolute;
        bottom: 0px;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background-color: rgb(224, 222, 219);
        left: 50%;
        margin-left: -12.5px;
        border: 1px solid #444447;

        .xx {
          text-align: center;
          height: 25px;
          line-height: 25px;
          color: #666666;
        }
      }
    }
  }
}

/* 隐藏滚动条 */
.but::-webkit-scrollbar {
  width: 0;
  /* 隐藏滚动条 */
  background: transparent;
  /* 背景透明 */
}